package org.lt.resume.controller.resume;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;
import org.lt.resume.service.resumeserviceInterface.ResumeServiceInterface;

import com.opensymphony.xwork2.ActionSupport;

public class SearchResumeController extends ActionSupport{

	/** **/
	private static final long serialVersionUID = -6706652243636996160L;

	private List items;

	private String currentPage;

	private ResumeServiceInterface resumeService;

	@Override
	public String execute() throws Exception {

		int currentNumber = Integer.valueOf(currentPage);
		items = resumeService.searchResume(currentNumber);
		return SUCCESS;
	}

	@JSON(name="items")
	public List getItems() {
		return items;
	}

	public void setItems(List items) {
		this.items = items;
	}

	public void setCurrentPage(String currentPage) {
		this.currentPage = currentPage;
	}

	public void setResumeService(ResumeServiceInterface resumeService) {
		this.resumeService = resumeService;
	}
	
}
